<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用车申请 - OA流程审批系统</title>
    <link href="../css/tailwind.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #f5f6fa;
        }
    </style>
</head>
<body class="p-4">
    <!-- 顶部导航 -->
    <div class="flex items-center mb-4">
        <i class="fas fa-arrow-left text-gray-600 mr-4"></i>
        <h1 class="text-lg font-semibold">用车申请</h1>
    </div>

    <!-- 用车申请表单 -->
    <div class="bg-white rounded-lg shadow-sm p-4 mb-4">
        <h3 class="text-lg font-semibold mb-4">用车申请</h3>
        <form class="space-y-4">
            <!-- 用车类型 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">用车类型</label>
                <select class="w-full p-2 border rounded-lg">
                    <option>公务用车</option>
                    <option>商务接待</option>
                    <option>员工接送</option>
                    <option>其他</option>
                </select>
            </div>

            <!-- 关联项目 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">关联项目</label>
                <select class="w-full p-2 border rounded-lg">
                    <option>项目A - 产品开发</option>
                    <option>项目B - 系统维护</option>
                    <option>项目C - 客户支持</option>
                </select>
            </div>

            <!-- 用车时间 -->
            <div class="grid grid-cols-2 gap-4">
                <div>
                    <label class="block text-sm font-medium text-gray-700 mb-1">开始时间</label>
                    <input type="datetime-local" class="w-full p-2 border rounded-lg">
                </div>
                <div>
                    <label class="block text-sm font-medium text-gray-700 mb-1">结束时间</label>
                    <input type="datetime-local" class="w-full p-2 border rounded-lg">
                </div>
            </div>

            <!-- 用车地点 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">用车地点</label>
                <div class="space-y-2">
                    <input type="text" class="w-full p-2 border rounded-lg" placeholder="出发地点">
                    <input type="text" class="w-full p-2 border rounded-lg" placeholder="目的地">
                </div>
            </div>

            <!-- 用车人数 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">用车人数</label>
                <input type="number" class="w-full p-2 border rounded-lg" placeholder="请输入用车人数">
            </div>

            <!-- 用车事由 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">用车事由</label>
                <textarea class="w-full p-2 border rounded-lg" rows="3" placeholder="请详细说明用车事由..."></textarea>
            </div>

            <!-- 用车要求 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">用车要求</label>
                <div class="space-y-2">
                    <label class="flex items-center">
                        <input type="checkbox" class="mr-2">
                        <span>需要司机</span>
                    </label>
                    <label class="flex items-center">
                        <input type="checkbox" class="mr-2">
                        <span>需要接送机</span>
                    </label>
                    <label class="flex items-center">
                        <input type="checkbox" class="mr-2">
                        <span>需要接送站</span>
                    </label>
                </div>
            </div>

            <!-- 紧急程度 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">紧急程度</label>
                <div class="grid grid-cols-3 gap-2">
                    <label class="flex items-center p-2 border rounded-lg">
                        <input type="radio" name="urgency" class="mr-2">
                        <span>普通</span>
                    </label>
                    <label class="flex items-center p-2 border rounded-lg">
                        <input type="radio" name="urgency" class="mr-2">
                        <span>加急</span>
                    </label>
                    <label class="flex items-center p-2 border rounded-lg">
                        <input type="radio" name="urgency" class="mr-2">
                        <span>特急</span>
                    </label>
                </div>
            </div>

            <!-- 审批人 -->
            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">审批人</label>
                <div class="flex items-center p-2 border rounded-lg">
                    <img src="https://via.placeholder.com/32" class="w-8 h-8 rounded-full mr-2">
                    <div>
                        <p class="font-medium">李四</p>
                        <p class="text-sm text-gray-500">行政部经理</p>
                    </div>
                </div>
            </div>

            <!-- 提交按钮 -->
            <button type="submit" class="w-full py-3 bg-blue-500 text-white rounded-lg">
                提交申请
            </button>
        </form>
    </div>

    <!-- 用车记录 -->
    <div class="bg-white rounded-lg shadow-sm p-4">
        <h3 class="text-lg font-semibold mb-3">用车记录</h3>
        <div class="space-y-3">
            <div class="p-3 border-b">
                <div class="flex justify-between items-start mb-2">
                    <div>
                        <p class="font-medium">公务用车</p>
                        <p class="text-sm text-gray-500">2024-03-20 09:00 - 18:00</p>
                    </div>
                    <span class="text-sm text-green-500">已通过</span>
                </div>
                <p class="text-sm text-gray-600">项目：项目A - 产品开发</p>
                <p class="text-sm text-gray-600">路线：公司 - 客户现场</p>
                <p class="text-sm text-gray-600">事由：客户现场技术支持</p>
            </div>
            <div class="p-3 border-b">
                <div class="flex justify-between items-start mb-2">
                    <div>
                        <p class="font-medium">商务接待</p>
                        <p class="text-sm text-gray-500">2024-03-15 14:00 - 16:00</p>
                    </div>
                    <span class="text-sm text-yellow-500">审批中</span>
                </div>
                <p class="text-sm text-gray-600">项目：项目B - 系统维护</p>
                <p class="text-sm text-gray-600">路线：机场 - 公司</p>
                <p class="text-sm text-gray-600">事由：客户来访接待</p>
            </div>
            <div class="p-3">
                <div class="flex justify-between items-start mb-2">
                    <div>
                        <p class="font-medium">员工接送</p>
                        <p class="text-sm text-gray-500">2024-03-10 08:00 - 09:00</p>
                    </div>
                    <span class="text-sm text-red-500">已拒绝</span>
                </div>
                <p class="text-sm text-gray-600">项目：项目C - 客户支持</p>
                <p class="text-sm text-gray-600">路线：员工宿舍 - 公司</p>
                <p class="text-sm text-gray-600">事由：加班接送</p>
            </div>
        </div>
    </div>
</body>
</html> 